<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class menu extends rows{
 	function init(){
 		$this->tableName="menu";
 		$this->col["id"]   = new column("id",dataCheck::INTEGER);
 		$this->col["name"] = new column("name",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["url"]  = new column("url",dataCheck::STRING);
 		$this->col["fatherId"]  = new column("fatherId",dataCheck::INTEGER);
 		$this->col["order"]  = new column("order",dataCheck::INTEGER);
		$this->col["rightsLevel"]  = new column("rightsLevel",dataCheck::INTEGER);
 	} 
 }
